package com.easygoods.request;

import com.bestvike.stone.spring.exception.AssertUtils;
import com.bestvike.stone.spring.rest.IRequest;
import com.easygoods.entityex.GoodsSkuSpecValueCollection;
import lombok.Data;

/**
 * Created by 许崇雷 on 2019-01-04.
 */
@Data
public class SkuDetailRequest implements IRequest {
    private String spuId;
    private GoodsSkuSpecValueCollection specs;

    @Override
    public void assertValid() {
        AssertUtils.hasText(this.spuId, "spuId");
//        AssertUtils.notEmpty(this.specs, "specs");
    }
}
